﻿using System;
namespace Abstract
{
    public class Doctor:AbstractBase
    {
        public string Hospital;
        public Doctor(string name, int age, string hospital):base(name, age)
        {
            Hospital = hospital;
        }

        public override void Print()
        {
            Console.WriteLine("Name: {0}, Age: {1}, Hospital: {2}", Name, Age, Hospital);

        }
    }
}
